// 模拟过滤
import { thousands } from "@/utils/index.js";
import moment from "moment";
const dateYMDHMSFormat = (dateStr, pattern = "YYYY-MM-DD HH:mm:ss") => {
  if (!dateStr) return;
  return moment(dateStr).format(pattern);
};

const dateYMDFormat = (dateStr, pattern = "YYYY-MM-DD") => {
  if (!dateStr) return;
  return moment(dateStr).format(pattern);
};
export default {
  // 全局千分位
  thousands,
  dateYMDFormat,
  dateYMDHMSFormat
};
